Skip to content

chore: Remove fs-extra reference from cli-plugin-metro#1971

Merged
thymikee merged 1 commit into
react-native-community:mainfrom
huntie:remove-fs-extra
Jun 16, 2023
Merged

chore: Remove fs-extra reference from cli-plugin-metro#1971
thymikee merged 1 commit into
react-native-community:mainfrom
huntie:remove-fs-extra

Conversation

@huntie

@huntie huntie commented Jun 16, 2023

Copy link
Copy Markdown
Collaborator

Summary

Refactor to reference fs instead of fs-extra within cli-plugin-metro, removing this (implicit) npm dependency.

Changelog: None

Test Plan

[Incoming]

@huntie huntie requested review from adamTrz and thymikee as code owners June 16, 2023 14:47
@huntie huntie force-pushed the remove-fs-extra branch from 9adb8db to 596b486 Compare June 16, 2023 14:53
@thymikee thymikee merged commit 1796cdd into react-native-community:main Jun 16, 2023
@huntie huntie deleted the remove-fs-extra branch June 16, 2023 15:47

export function writeImageSet(imageSet: ImageSet): void {
fs.mkdirsSync(imageSet.basePath);
fs.mkdirSync(imageSet.basePath);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huntie This should have { recursive: true } to be equivalent to mkdirs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants